package 集合.Collect集合遍历;

import java.util.ArrayList;
import java.util.Collection;

public class 增强for循环 {
    public static void main(String[] args) {
        Collection<String> a=new ArrayList<>();
        a.add("朱佳铖");
        a.add("李佳辉");
        a.add("启动器");
        for(String b:a){
            System.out.println(b);
        }
        //也能遍历数组
        int[] c={5,9,8,4};
        for (int i:c){
            System.out.println(i);
        }
    }
}
